﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ServiceModel;
using K.EnterpriseLibary;
namespace K.Contract
{
    /// <summary>
    /// 异常处理契约
    /// 定义异常处理规范
    /// </summary>
    
    [ServiceContract]
    [ServiceKnownType(typeof(System.DBNull))]
    public interface IExceptionDispose
    {
        [OperationContract]
        [FaultContract(typeof(ExceptionInfo))]
        void SendExceptionToServer(byte[] exceptionObject); //K-Doubtful 传送字节类型的数据给服务器？？

        [OperationContract]
        double Add(double x, double y);
    }
}
